]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: fix sensitivity of auth prompt when cancelling early and user list is disabled
authorRay Strode <rstrode@redhat.com>
Tue, 7 Oct 2014 18:30:34 +0000 (14:30 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 17 Nov 2014 17:11:03 +0000 (12:11 -0500)
If the user list is disabled and the user clicks cancel quickly enough
after typing their username, they can get in a state where the
auth prompt gets stuck in the insensitive state.

This is because the login dialog code makes the prompt insensitive
while while pam is processing the provided username, but the prompt
only makes itself sensitive again when it is hidden.

This commit makes it sensitive right before asking for a username again.

https://bugzilla.gnome.org/show_bug.cgi?id=740141

js/gdm/loginDialog.js

index 724b28b0060577a276c1cbc2933487031d02a204..a40dc258bfe9998f44727071affcc294ce3d5ca3 100644 (file)
@@ -643,6 +643,8 @@ const LoginDialog = new Lang.Class({
                                                         realmManager.release();
                                                     }));
         this._updateCancelButton();
+
+        this._authPrompt.updateSensitivity(true);
         this._showPrompt();
     },